<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
	<link href="https://cdn.bootcss.com/animate.css/3.7.2/animate.css" rel="stylesheet">
</head>
<body>
	<div id="root">
		<!-- name对应style里的前缀 -->
		<transition name="fade" enter-active-class="animated zoomIn" leave-active-class="animated zoomOut">
			<div v-if="show">Hello world</div>
		</transition>	
		<button @click="handleClick">切换</button>
	</div>
	<script type="text/javascript">
		var vm=new Vue({
			el:"#root",
			data:{
				show:true
			},
			methods:{
				handleClick:function(){
					this.show=!this.show
				}
			}
		})
	
	</script>
</body>
</html>